package com.mowh.gof23.creational.patterns.abstractfactory.listfactory;

import com.mowh.gof23.creational.patterns.abstractfactory.factory.Link;

/**
 * @author mowh1gd
 * @create 2023/10/24 8:39
 */
public class ListLink extends Link {
    public ListLink(String caption, String url) {
        super(caption, url);
    }

    @Override
    public String makerHTML() {
        return "  <li><a href=\"" + url + "\">" + caption + "</a></li>\n";
    }
}
